package com.example.baguwen.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Data
public class BaguwenDTO {
    
    private Long id;
    
    @NotBlank(message = "类型不能为空")
    @Size(max = 50, message = "类型长度不能超过50个字符")
    private String type;
    
    @NotBlank(message = "问题不能为空")
    @Size(max = 200, message = "问题长度不能超过200个字符")
    private String question;
    
    @NotBlank(message = "内容不能为空")
    private String content;
} 